package com.sidianzhong.sdz.model;

import java.io.Serializable;

/**
 * @author 
 */
public class WebInspectionitem implements Serializable {
    private Integer id;

    private String equipmenttypekey;

    private String equipmentkey;

    private String itemname;

    private Integer itemtype;

    private String itemunits;

    private String itemoption1;

    private String itemoption2;

    private String itemoption3;

    private String itemoption4;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getEquipmenttypekey() {
        return equipmenttypekey;
    }

    public void setEquipmenttypekey(String equipmenttypekey) {
        this.equipmenttypekey = equipmenttypekey;
    }

    public String getEquipmentkey() {
        return equipmentkey;
    }

    public void setEquipmentkey(String equipmentkey) {
        this.equipmentkey = equipmentkey;
    }

    public String getItemname() {
        return itemname;
    }

    public void setItemname(String itemname) {
        this.itemname = itemname;
    }

    public Integer getItemtype() {
        return itemtype;
    }

    public void setItemtype(Integer itemtype) {
        this.itemtype = itemtype;
    }

    public String getItemunits() {
        return itemunits;
    }

    public void setItemunits(String itemunits) {
        this.itemunits = itemunits;
    }

    public String getItemoption1() {
        return itemoption1;
    }

    public void setItemoption1(String itemoption1) {
        this.itemoption1 = itemoption1;
    }

    public String getItemoption2() {
        return itemoption2;
    }

    public void setItemoption2(String itemoption2) {
        this.itemoption2 = itemoption2;
    }

    public String getItemoption3() {
        return itemoption3;
    }

    public void setItemoption3(String itemoption3) {
        this.itemoption3 = itemoption3;
    }

    public String getItemoption4() {
        return itemoption4;
    }

    public void setItemoption4(String itemoption4) {
        this.itemoption4 = itemoption4;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WebInspectionitem other = (WebInspectionitem) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getEquipmenttypekey() == null ? other.getEquipmenttypekey() == null : this.getEquipmenttypekey().equals(other.getEquipmenttypekey()))
            && (this.getEquipmentkey() == null ? other.getEquipmentkey() == null : this.getEquipmentkey().equals(other.getEquipmentkey()))
            && (this.getItemname() == null ? other.getItemname() == null : this.getItemname().equals(other.getItemname()))
            && (this.getItemtype() == null ? other.getItemtype() == null : this.getItemtype().equals(other.getItemtype()))
            && (this.getItemunits() == null ? other.getItemunits() == null : this.getItemunits().equals(other.getItemunits()))
            && (this.getItemoption1() == null ? other.getItemoption1() == null : this.getItemoption1().equals(other.getItemoption1()))
            && (this.getItemoption2() == null ? other.getItemoption2() == null : this.getItemoption2().equals(other.getItemoption2()))
            && (this.getItemoption3() == null ? other.getItemoption3() == null : this.getItemoption3().equals(other.getItemoption3()))
            && (this.getItemoption4() == null ? other.getItemoption4() == null : this.getItemoption4().equals(other.getItemoption4()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getEquipmenttypekey() == null) ? 0 : getEquipmenttypekey().hashCode());
        result = prime * result + ((getEquipmentkey() == null) ? 0 : getEquipmentkey().hashCode());
        result = prime * result + ((getItemname() == null) ? 0 : getItemname().hashCode());
        result = prime * result + ((getItemtype() == null) ? 0 : getItemtype().hashCode());
        result = prime * result + ((getItemunits() == null) ? 0 : getItemunits().hashCode());
        result = prime * result + ((getItemoption1() == null) ? 0 : getItemoption1().hashCode());
        result = prime * result + ((getItemoption2() == null) ? 0 : getItemoption2().hashCode());
        result = prime * result + ((getItemoption3() == null) ? 0 : getItemoption3().hashCode());
        result = prime * result + ((getItemoption4() == null) ? 0 : getItemoption4().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", equipmenttypekey=").append(equipmenttypekey);
        sb.append(", equipmentkey=").append(equipmentkey);
        sb.append(", itemname=").append(itemname);
        sb.append(", itemtype=").append(itemtype);
        sb.append(", itemunits=").append(itemunits);
        sb.append(", itemoption1=").append(itemoption1);
        sb.append(", itemoption2=").append(itemoption2);
        sb.append(", itemoption3=").append(itemoption3);
        sb.append(", itemoption4=").append(itemoption4);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}